package com.sunrise.generico.util.facebook;

import org.springframework.context.annotation.Configuration;

@Configuration
public class FacebookUtil {

/*	public static List<User> buscarUsuario(String valor) {
		FacebookClient fbCliente = new DefaultFacebookClient();
		String query = "SELECT uid, username, first_name, middle_name, last_name, website, birthday, email FROM user WHERE uid='"
				+ valor + "' OR username='" + valor + "'";
		return fbCliente.executeFqlQuery(query, User.class);
	}

	public static List<FacebookProfile> buscarFotoPerfil(String username) {
		FacebookClient fbCliente = new DefaultFacebookClient();
		String fotoPerfil = "SELECT id, height, url, is_silhouette FROM profile_pic WHERE id=" + username;
		return fbCliente.executeFqlQuery(fotoPerfil, FacebookProfile.class);
	}*/

//	@Bean
//	public static ConnectionFactoryLocator connectionFactoryLocator() {
//		ConnectionFactoryRegistry registry = new ConnectionFactoryRegistry();
//		registry.addConnectionFactory(new FacebookConnectionFactory("476982669054953","b249f36fe1cf8909309b4956320c4627"));
//		return registry;
//	}

}
